import Vue from 'vue'
import App from './App.vue'

import router from "./router"
import ElementUI from 'element-ui';
import 'element-ui/lib/theme-chalk/index.css';
import {postRequest} from "./utils/request"
import {postKeyValueRequest} from "./utils/request"
import {putRequest} from "./utils/request"
import {deleteRequest} from "./utils/request"
import {getRequest} from "./utils/request"
import {downloadRequest} from "./utils/request"
import db from "./utils/sessionStorage"
import * as common from "./utils/common"

Vue.config.productionTip = false

// 本地存储
Vue.prototype.db = db
// 公用属性
Vue.prototype.common = common
// http请求
Vue.prototype.postRequest = postRequest;
Vue.prototype.postKeyValueRequest = postKeyValueRequest;
Vue.prototype.putRequest = putRequest;
Vue.prototype.deleteRequest = deleteRequest;
Vue.prototype.getRequest = getRequest;
Vue.prototype.downloadRequest = downloadRequest;

Vue.use(ElementUI);

new Vue({
  router,
  render: h => h(App),
}).$mount('#app')
